package net.thellium.ddiameter.protocol.avp;

import net.thellium.ddiameter.protocol.AVPType;

public class AvpFactory {
	public static BaseAVP getAVP(AVPType type, byte[] bytes) {
		switch (type) {
		case OctetString:
		case DiameterIdentity:
			return new OctetStringAVP(bytes);
		default:
			return null;

		}
	}
}
